package model;

import java.util.ArrayList;

public class Sell {
	private int ID;
	private User user;
	private ArrayList<Item> items = new ArrayList<Item>();
	
	public Sell(User user, int ID){
		this.user = user;
		this.ID = ID;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getID() {
		return ID;
	}

	public void setID(int ID) {
		this.ID = ID;
	}
	public ArrayList<Item> getAllItems() {
		return items;
	}
	
	public Item getItem(int ID){
		return items.get(ID-1);
	}
	
	public void setItems(ArrayList<Item> items) {
		this.items = items;
	}
	
	public void addItem(Item item) {
		items.add(item);
	}
	
	public void removeItem(Item item){
		items.remove(item);
	}
}
